<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li><a ui-sref="main.sys.user.list">用户管理</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
    <div class="panel panel-default">
        <!-- 头部 -->
        <div class="panel-heading font-bold">{{title}}
            <a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.sys.user.list"><i class="text-md fa fa-times text-muted"></i></a>
        </div>
        <!--表单-->
        <div class="panel-body">
            <form class="form-horizontal" id="userform" name="user_form">

                <!--密码-->
                <div class="form-group" ng-hide="userInfo.userType != 1">
                    <label class="col-lg-2 col-sm-3 control-label" for="password">
                        <!--<span class="text-danger wrapper-sm">*</span>-->原密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control" name="oldpassword" id="oldpassword" placeholder="请输入密码..." ng-model="record.oldpassword">
                    </div>
                </div>

                <div class="line line-dashed b-b line-lg pull-in" ng-hide="userInfo.userType != 1"></div>
                <!--确认密码-->
                <div class="form-group" ng-hide="userInfo.userType != 1">
                    <label class="col-lg-2 col-sm-3 control-label" for="confirmPassword">
                        <!--<span class="text-danger wrapper-sm">*</span>-->新密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control" name="Password" id="Password" placeholder="请输入新密码..." ng-model="record.Password">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <!--确认密码-->
                <div class="form-group" ng-hide="userInfo.userType != 1">
                    <label class="col-lg-2 col-sm-3 control-label" for="confirmPassword">
                        <!--<span class="text-danger wrapper-sm">*</span>-->确认密码</label>
                    <div class="col-sm-6">
                        <input type="password" class="form-control" name="confirmPassword" id="confirmPassword" placeholder="请确认您的密码..." ng-model="record.confirmPassword">
                        <span class="help-block m-b-none"></span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in" ng-hide="userInfo.userType != 1"></div>

                <!--btn-->
                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-2">
                        <button ng-click="saveData()" class="btn btn-info w-xs m-l-xl" ng-disabled="isDisabled">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
